public class Movie {
    private String movieId;
    private String title;
    private String director;
    private String actors;
    private String  intro;
    private int duration;
    private double score;
    private double rating;
    public Movie(String movieId, String title, String director, String actors, String intro, int duration, double score) {
        this.movieId = movieId;
        this.title = title;
        this.director = director;
        this.actors = actors;
        this.intro = intro;
        this.duration = duration;
        this.score = score;
        this.rating=rating;
    }
    public String getActors(){
        return actors;
    }
    public String getIntro(){
        return intro;
    }
    public int getDuration(){
        return duration;
    }
    public double getScore(){
        return score;
    }
    public String getMovieId() {
        return movieId;
    }
    public void setDirector(String newDirector) {
        this.director = newDirector;
    }
    public String getTitle() {
        return title;
    }
    public String getDirector(){
        return director;
    }
    public void setTitle(String newTitle){
        this.title=newTitle;
    }
    public void setActors(String actors) {
        this.actors = actors;
    }
    public void setIntro(String intro) {
        this.intro = intro;
    }
    public void setDuration(int duration) {
        this.duration = duration;
    }
    public void setScore(double score) {
        this.score = score;
    }
    public double getRating(){
        return rating;
    }
    public String toString() {
        return "Movie{" + "movieId='" + movieId + '\'' + ", title='" + title + '\'' + ", director='" + director + '\'' + ", actors='" + actors + '\'' + ", intro='" + intro + '\'' + ", duration=" + duration + ", score=" + score + '}';
    }
    public void setInfo(String director, String actors, String intro, int duration, double score) {
        this.director = director;
        this.actors = actors;
        this.intro = intro;
        this.duration = duration;
        this.score = score;
    }
}

